<?php

use yii\db\Migration;

class m161123_011610_alter_card_send extends Migration
{
    public function safeUp()
    {
        $this->addColumn('{{%card_send}}','issuser_id','integer(11) default 0 comment \'推荐人id\'');
        $this->addColumn('{{%card_send}}','send_type','SMALLINT(4) default 0 comment \'发卡类型（0实体卡 1推荐卡）\'');
    }

    public function safeDown()
    {
        $this->dropColumn('{{%card_send}}','issuser_id');
        $this->dropColumn('{{%card_send}}','send_type');
    }
}
